
package com.market.web.action;

import org.springframework.beans.BeanUtils;

import com.market.bean.Electronelement;

public class AdminELSaveAction extends AdminProductAction
{
    private String current;

    private String size;

    private String voltage;

    public String getVoltage()
    {
        return voltage;
    }

    public void setVoltage(String voltage)
    {
        this.voltage = voltage;
    }

    public String getCurrent()
    {
        return current;
    }

    public void setCurrent(String current)
    {
        this.current = current;
    }

    public String getSize()
    {
        return size;
    }

    public void setSize(String size)
    {
        this.size = size;
    }
    
    public String execute() throws Exception
    {
        //ELForm elf = (ELForm)form;
        
        Electronelement el = new Electronelement();
        BeanUtils.copyProperties(this, el);
        return SaveOrUpdateProduct(el);
    }
}
